<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%> 

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="sidebar-scroll" style="overflow: hidden; outline: none;">
	<div class="nav-collapse" id="sidebar" style="height: 0px;">
         <!-- BEGIN SIDEBAR MENU -->
          <ul class="sidebar-menu" id="person">
            <shiro:hasPermission name="user:showItem">
		  	  <li class="sub-menu" id="admin-account">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>用户管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="suadminb sub">
                      <li class="active">
                        <a href="${ctx }/${admin_url}/user/list">用户信息</a>
                      </li>
                  </ul>
              </li>    
               </shiro:hasPermission>         
		  <%-- 	  <li class="sub-menu" id="admin-account">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>系统管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="suadminb sub">
                      <li class="active">
                        <a href="${ctx }/${admin_url}/user/list">字典管理</a>
                      </li>
                  </ul>
              </li> --%>
  			<shiro:hasPermission name="security:showItem">
                <li class="sub-menu" id="admin-security">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>安全管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="suadminb sub">
                      <li >                      
                        <a href="${ctx }/${admin_url}/system-online-users">在线用户管理</a>
                        <a href="${ctx }/${admin_url}/system-dic">字典管理</a>
                        <a href="${ctx }/${admin_url}/system-roles">角色管理</a>
                        <a href="${ctx }/${admin_url}/system-links">链接管理</a>
                        <a href="${ctx }/${admin_url}/system-authority">权限管理</a>
                        <a href="${ctx }/${admin_url}/system-roles-authority">角色权限管理</a>
                        <a href="${ctx }/${admin_url}/system-links-authority">链接权限管理</a>                       
                      </li>
                  </ul>
              </li>
              </shiro:hasPermission>
			<li class="sub-menu" id="admin-system"><a class=""
				href="javascript:;"> <i class="glyphicon glyphicon-user"></i> <span>系统管理</span>
					<span class="arrow"></span>
			</a>
				<ul class="suadminb sub">
					<li><a href="${ctx }/${admin_url}/dic">字典管理</a></li>
				</ul></li>

			<li class="sub-menu" id="admin-specialist"><a class=""
				href="javascript:;"> <i class="glyphicon glyphicon-user"></i> <span>专家管理</span>
					<span class="arrow"></span>
			</a>
				<ul class="suadminb sub">
					<li><a href="${ctx }/${admin_url}/specialist">专家信息</a></li>
				</ul></li>

			<li class="sub-menu" id="admin-data"><a class=""
				href="javascript:;"> <i class="glyphicon glyphicon-user"></i> <span>数据监测</span>
					<span class="arrow"></span>
			</a>
				<ul class="suadminb sub">
					<li><a href="${ctx }/${admin_url}/data-pay">支出数据</a></li>
				</ul></li>
				
				<li class="sub-menu" id="admin-menu"><a class=""
				href="javascript:;"> <i class="glyphicon glyphicon-user"></i> <span>菜单管理</span>
					<span class="arrow"></span>
			</a>
				<ul class="suadminb sub">
					<li><a href="${ctx }/${admin_url}/menu">菜单信息</a></li>
				</ul></li>

			<%--              <shiro:hasAnyRoles name="sa,projectadmin">
              <li class="sub-menu" id="admin-account">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>帐号认证</span>
                      <span class="arrow"></span>
                      <!-- mark -->
                  </a>
                  <ul class="suadminb sub">
					           <li class="">
                        <a href="${ctx }/${admin_url}/verify/user">帐号认证</a>
                      </li>
                  </ul>
              </li>
              </shiro:hasAnyRoles>
              <shiro:hasAnyRoles name="sa,projectadmin">
              <li class="sub-menu" id="admin-course">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-tasks"></i>
                      <span>服务审核与管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li><a href="${ctx }/${admin_url}/verify/project">特殊服务审核</a></li>
						          <li>
                        <a href="${ctx }/${admin_url}/manage/project">服务管理</a></li>
                  </ul>
              </li>
              </shiro:hasAnyRoles>
              <shiro:hasAnyRoles name="sa,financeadmin">
              <li class="sub-menu" id="admin-profile">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-download-alt"></i>
                      <span>充值管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li><a href="${ctx }/${admin_url}/manage/deposit">充值记录列表</a></li>
                  </ul>
              </li>
              </shiro:hasAnyRoles>
              <shiro:hasAnyRoles name="sa,financeadmin">
               <li class="sub-menu" id="admin-finance">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-download-alt"></i>
                      <span>财务管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                     <li><a href="${ctx }/${admin_url}/manage/finance">用户财务列表</a></li>
                     <li><a href="${ctx }/${admin_url}/manage/getcash">提现申请</a></li>
                  </ul>
              </li>
              </shiro:hasAnyRoles>
              <shiro:hasAnyRoles name="sa,couponadmin">
              <li class="sub-menu" id="admin-course">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-tasks"></i>
                      <span>优惠活动管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li><a href="${ctx }/${admin_url}/verify/project">特殊服务审核</a></li>
						<li><a href="${ctx }/${admin_url}/manage/preferential">发起优惠活动</a></li>
						<li><a href="${ctx }/${admin_url}/manage/preferential/list">优惠活动管理</a></li>
                  </ul>
              </li>
              </shiro:hasAnyRoles> --%>
              
             <%--  <li class="sub-menu" id="admin-model">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-wrench"></i>
                      <span>系统管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li><a href="${ctx }/${admin_url}/manage/category">服务分类管理</a></li>
						<li><a href="${ctx }/${admin_url}/manage/region">地理位置管理</a></li>
						<li><a href="${ctx }/${admin_url}/manage/fund">YAMI宝管理</a></li>
						<li><a href="${ctx }/${admin_url}/set/recommend">推荐服务设置</a></li>
						<li><a href="${ctx }/${admin_url}/set/fund">积善值设置</a></li>
						<li><a href="${ctx }/${admin_url}/set/bind">第三方登录KEY设置</a></li>
						<li><a href="${ctx }/${admin_url}/manage/ads">广告管理</a></li>
                  </ul>
              </li>
              <li class="sub-menu" id="admin-system">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-asterisk"></i>
                      <span>CMS系统</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                     <li><a href="#">分类设置</a></li>
						<li><a href="#">录入详细文字</a></li>
                  </ul>
              </li> --%>
             <%--  <shiro:hasAnyRoles name="sa,couponadmin">
              <li class="sub-menu" id="admin-coupon">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-download-alt"></i>
                      <span>优惠券管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
          					<li><a href="${ctx }/${admin_url}/manage/coupon">优惠券列表</a></li>
          					<li><a href="${ctx }/${admin_url}/manage/coupon/provide">优惠券派发</a></li>
          					<li><a href="${ctx }/${admin_url}/manage/coupon/use">优惠券使用</a></li>
                  </ul>
              </li>
              </shiro:hasAnyRoles> --%>
            <%--   <shiro:hasRole name="sa">
              <li class="sub-menu" id="admin-account">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>账号管理</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li class="active"><a id="acount">账号管理</a></li>
                  </ul>
              </li>
              </shiro:hasRole> --%>
          <%--     <shiro:hasRole name="sa">
              <li class="sub-menu" id="admin-account">
                  <a class="" href="javascript:;">
                      <i class="glyphicon glyphicon-user"></i>
                      <span>系统设置</span>
                      <span class="arrow"></span>
                  </a>
                  <ul class="sub">
                      <li class="active"><a href="${ctx }/${admin_url}/manage/category">服务分类</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/project/benefit">服务收益分类</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/project/open">优惠活动分类</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/project/protrol">服务发起协议</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/coupon/desc">优惠券使用说明</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/web/desc">关于本网站</a></li>
                      <li class="active"><a href="${ctx }/${admin_url}/web/aboutus">关于我们</a></li>
                  </ul>
              </li>
              </shiro:hasRole> --%>
          </ul>
          <p class="text-center" style="margin-bottom:20px;">版本: ${version }</p>
         <!-- END SIDEBAR MENU -->
      </div>
</div>
<script type="text/javascript">
document.getElementById("acount").href =$CONFIG.base_url+"/${admin_url}/user/update?uid="+g_user.id;
</script>
